abstract class AbstractXMLReader
extends java.lang.Object
implements org.xml.sax.XMLReader
XMLReader
implementations.
Contains properties as defined in XMLReader
, and does not recognize any features.setContentHandler(org.xml.sax.ContentHandler)
,
setDTDHandler(org.xml.sax.DTDHandler)
,
setEntityResolver(org.xml.sax.EntityResolver)
,
setErrorHandler(org.xml.sax.ErrorHandler)
Modifier and Type | Field and Description |
---|---|
private org.xml.sax.ContentHandler |
contentHandler |
private org.xml.sax.DTDHandler |
dtdHandler |
private org.xml.sax.EntityResolver |
entityResolver |
private org.xml.sax.ErrorHandler |
errorHandler |
private org.xml.sax.ext.LexicalHandler |
lexicalHandler |
Constructor and Description |
---|
AbstractXMLReader() |
Modifier and Type | Method and Description |
---|---|
org.xml.sax.ContentHandler |
getContentHandler() |
org.xml.sax.DTDHandler |
getDTDHandler() |
org.xml.sax.EntityResolver |
getEntityResolver() |
org.xml.sax.ErrorHandler |
getErrorHandler() |
boolean |
getFeature(java.lang.String name)
This implementation throws a
SAXNotRecognizedException exception
for any feature outside of the "http://xml.org/sax/features/" namespace
and returns false for any feature within. |
protected org.xml.sax.ext.LexicalHandler |
getLexicalHandler() |
java.lang.Object |
getProperty(java.lang.String name)
Throws a
SAXNotRecognizedException exception when the given property does not signify a lexical
handler. |
void |
setContentHandler(org.xml.sax.ContentHandler contentHandler) |
void |
setDTDHandler(org.xml.sax.DTDHandler dtdHandler) |
void |
setEntityResolver(org.xml.sax.EntityResolver entityResolver) |
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler) |
void |
setFeature(java.lang.String name,
boolean value)
This implementation throws a
SAXNotRecognizedException exception
for any feature outside of the "http://xml.org/sax/features/" namespace
and accepts a false value for any feature within. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Throws a
SAXNotRecognizedException exception when the given property does not signify a lexical
handler. |
@Nullable private org.xml.sax.DTDHandler dtdHandler
@Nullable private org.xml.sax.ContentHandler contentHandler
@Nullable private org.xml.sax.EntityResolver entityResolver
@Nullable private org.xml.sax.ErrorHandler errorHandler
@Nullable private org.xml.sax.ext.LexicalHandler lexicalHandler
public void setContentHandler(@Nullable org.xml.sax.ContentHandler contentHandler)
setContentHandler
in interface org.xml.sax.XMLReader
@Nullable public org.xml.sax.ContentHandler getContentHandler()
getContentHandler
in interface org.xml.sax.XMLReader
public void setDTDHandler(@Nullable org.xml.sax.DTDHandler dtdHandler)
setDTDHandler
in interface org.xml.sax.XMLReader
@Nullable public org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler
in interface org.xml.sax.XMLReader
public void setEntityResolver(@Nullable org.xml.sax.EntityResolver entityResolver)
setEntityResolver
in interface org.xml.sax.XMLReader
@Nullable public org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver
in interface org.xml.sax.XMLReader
public void setErrorHandler(@Nullable org.xml.sax.ErrorHandler errorHandler)
setErrorHandler
in interface org.xml.sax.XMLReader
@Nullable public org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler
in interface org.xml.sax.XMLReader
@Nullable protected org.xml.sax.ext.LexicalHandler getLexicalHandler()
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
SAXNotRecognizedException
exception
for any feature outside of the "http://xml.org/sax/features/" namespace
and returns false
for any feature within.getFeature
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
SAXNotRecognizedException
exception
for any feature outside of the "http://xml.org/sax/features/" namespace
and accepts a false
value for any feature within.setFeature
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
@Nullable public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
SAXNotRecognizedException
exception when the given property does not signify a lexical
handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler
.getProperty
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
SAXNotRecognizedException
exception when the given property does not signify a lexical
handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler
.setProperty
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException